/******************************************************************************
 * (C) Copyright 2013 Atech-Automotive
 * FILE NAME:    APP_HSCanNwm.h
 * DESCRIPTION:
 * 
 * DATE BEGUN:   2014/09/11
 * BY:           martin.zhang
 * PRODUCT NAME:
 * APPLICATION:
 * TARGET H/W:
 * DOC REF:
 *****************************************************************************
 */

#ifndef _APP_HSCANNWM_H_
#define _APP_HSCANNWM_H_

#include "msg_canType.h"

/* typedef */
typedef enum
{
    CAN_NWM_nenPowerOn = 0,
    CAN_NWM_nenWakeUp,
    CAN_NWM_nenWaitToSleep,
    CAN_NWM_nenSleep,
    CAN_NWM_nenBusOff,
       
} CAN_NWM_tenState;


/*****************************************************************************
** Function prototypeseb
*****************************************************************************/
void app_canNwmHandler10ms(void);
BOOL Comm_can1_boGetSleepPermit(void);
void notifyCanNwm(NOTIFY_CAN_NWM_CMD_E cmd);
BOOL DTC_getCanBusoffFault(void);
void DTC_clearCanBusoffFault(void);
void appCanNwm_quickSleep(void);
void appCanNwm_clearSleepCounter(void);
void app_canNwmTxCtrl(BOOL CMD);
void app_canNwmRxCtrl(BOOL CMD);


/****************************************************************************/

#endif	//_APP_HSCANNWM_H_

/*****************************************************************************
** End File
*****************************************************************************/

